<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="送货单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="货运单号" ng-model="condition.sendOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">客户名称：</label>
                        <input type="text" class="form-control" placeholder="客户名称" ng-model="condition.deliveryOrgName">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">到货日期：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.arrivalDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="showDateStart = !showDateStart"
                               ng-change="checkDate(condition, 'arrivalDateStart', 'arrivalDateEnd')"
                               is-open="showDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.arrivalDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}"
                               ng-click="showDateEnd = !showDateEnd"
                               ng-change="checkDate(condition, 'arrivalDateStart', 'arrivalDateEnd')"
                               is-open="showDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否到货：</label>
                        <select class="form-control" ng-model="condition.isArrival">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">物流更新状态：</label>
                        <select class="form-control" ng-model="condition.recordFlag">
                            <option value="">请选择</option>
                            <option value=0>否</option>
                            <option value=1>是</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth" fixed-width="tbStyle.scrollLeft"></div>
                                </th>
                                <th width="100" class="border-r-none">
                                    操作
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-class="{'row-selected': $index === markInfo.cueRow}"
                                ng-click="selectRow($index)">
                                <td class="spill-dots border-l-none" ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed && itemCol.type !== 'operate'"
                                    title="{{item[itemCol.dataField]}}">
                                    {{item[itemCol.dataField]}}
                                </td>
                                <td width="100" class="font-0 border-l-none border-r-none">
                                    <button class="btn btn-operate" ng-click="entryInfo(item)" ng-disabled="item.arrivalDate">录入物流信息</button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-class="{'row-selected': $index === markInfo.cueRow}"
                                ng-click="selectRow($index)">
                                <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="录入物流信息" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="pos-a-full shuttle-box left" style="top: 35px; right: 50%;">
                <div class="box-head wrapper-none">
                    <div class="panel-bar clearfix m-t">
                        <div class="pull-left">
                            <i></i>订单信息
                        </div>
                    </div>
                </div>
                <div class="pos-a box-body wrapper-y-sm">
                    <div class="form-group col-xs-6 m-b-sm" ng-repeat="item in detailMap track by $index">
                        <label class="col-xs-4 m-b-n text-right max-w-100">{{item.name}}：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{detailInfo.headerInfo[item.field] || '-'}}
                        </div>
                    </div>
                    <!-- <div class="form-group col-xs-6 m-b-sm" ng-repeat="item in detailInfo.detailVOList track by $index">
                        <label class="col-xs-4 m-b-n text-right max-w-100">{{item.packDesc}}数/重量：</label>
                        <div class="col-xs-8 wrapper-none spill-dots">
                            {{item.deliveryQty || "-"}}/{{item.deliveryWeight || "-"}}
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="pos-a-full shuttle-box right" style="top: 35px; left: 50%;">
                <div class="box-head p-r-none">
                    <div class="panel-bar clearfix m-t">
                        <div class="pull-left">
                            <i></i>物流信息录入
                        </div>
                    </div>
                </div>
                <div class="pos-a box-body wrapper-y-sm" style="right:0;">
                    <div yb-time-line ng-model="detailInfo.logisticsVOList" can-enter="true"
                         time-frame-new="logisticsNew" enter-func="entryLogistics()" receive-func="receiveGoods()"></div>
                </div>
            </div>
        </div>
    </div>
</div>